Release 10.1A: OpenEdge Data Management:
SQL Reference
DESCRIBE SELECT LIST
Writes information about select list items in a prepared
SELECTstatement to an output SQLDA structure.Syntax
statement_nameThe name of a
SELECTstatement to be processed using dynamic SQL steps. Typically, this is the same statement_name as in thePREPAREstatement.output_sqlda_nameThe name of the SQLDA structure to which
Note: Select list items are column names and expressions in aDESCRIBEwill write information about select list items.SELECTstatement. AFETCHstatement writes the values returned by aSELECTstatement to the addresses stored in an output SQLDA.To utilize the
DESCRIBE SELECT LISTstatement in your application, issue statements in the following order:1.
DECLARE CURSOR2.
PREPARE3.
OPEN4.
DESCRIBE SELECT LIST5.
FETCHA
DESCRIBE SELECT LISTstatement writes the number of select list items to thesqld_nvarsfield of an output SQLDA. If thesqld_sizefield of the SQLDA is not equal to or greater than this number,DESCRIBEwrites the value as a negative number tosqld_nvars. Design your application to checksqld_nvarsfor a negative number to determine if a particular output SQLDA is large enough to process the currentSELECTstatement.Authorization
None
Related statements
PREPARE, DECLARE CURSOR, OPEN, FETCH, CLOSE
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |